package com.lvy.hczn.front.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvy.hczn.front.system.domain.business.PurchaseOrderDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PurchaseOrderDetailMapper extends BaseMapper<PurchaseOrderDetail> {

    /**
     * 根据采购单及状态查询
     *
     * @param purchaseCodes
     * @param status
     * @return
     * @author yw
     * @date 2022-07-13 16:06:54
     */
    List<PurchaseOrderDetail> selectByPurchase(@Param(value = "purchaseCodes") List<String> purchaseCodes, @Param(value = "status") String status, @Param(value = "temperatureCode") Integer temperatureCode);


    List<PurchaseOrderDetail> selectByBoxCode(@Param(value = "boxCode") String boxCode,@Param(value = "status") String status, @Param(value = "temperatureCode") Integer temperatureCode);
}
